	.file	"ascii.c"
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"output the ascii:"
.LC2:
	.string	"%4d"
	.text
	.globl	ascii
	.type	ascii, @function
ascii:
.LFB0:
	.cfi_startproc
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movq	-24(%rbp), %rax
	leaq	.LC0(%rip), %rsi
	movq	%rax, %rdi
	call	fopen@PLT
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	fgetc@PLT
	movb	%al, -9(%rbp)
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L5:
	cmpb	$10, -9(%rbp)
	jne	.L3
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L4
.L3:
	movsbl	-9(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rdi
	movl	$0, %eax
	call	printf@PLT
.L4:
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	fgetc@PLT
	movb	%al, -9(%rbp)
.L2:
	cmpb	$-1, -9(%rbp)
	jne	.L5
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	ascii, .-ascii
	.ident	"GCC: (Ubuntu 6.2.0-5ubuntu12) 6.2.0 20161005"
	.section	.note.GNU-stack,"",@progbits
